package app.system.service.impl;

import app.system.entity.analyes.Comment;
import app.system.mapper.CommentMapper;
import app.system.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentMapper commentMapper;
    @Override
    public int saveComment(Comment comment) {
        return commentMapper.saveComment(comment);
    }

    @Override
    public List<Comment> getComment() {
        return commentMapper.getComment();
    }

    @Override
    public List<Comment> selectComment(Comment comment) {
        return commentMapper.selectComment(comment);
    }

    @Override
    public int updataComment(Comment comment) {
        return commentMapper.updataComment(comment);
    }

    @Override
    public int selectCommentCount(String time) {
        return commentMapper.selectCommentCount(time);
    }

    @Override
    public int getCommentCount() {
        return commentMapper.getCommentCount();
    }
}
